﻿// Decompiled with JetBrains decompiler
// Type: DnProcessSimulateCommands.ExplodeGeometries.CUiEXGExplodeGeometryMessage
// Assembly: DnProcessSimulateCommands, Version=2402.0.0.890, Culture=neutral, PublicKeyToken=null
// MVID: A885D881-AEDF-447E-852A-6F13102E089C
// Assembly location: C:\Program Files\Tecnomatix_2402\eMPower\DotNetCommands\DnProcessSimulateCommands.dll

using System;
using System.ComponentModel;
using System.Windows.Forms;
using Tecnomatix.Engineering.Ui;


namespace DnProcessSimulateCommands.ExplodeGeometries;

public class CUiEXGExplodeGeometryMessage : TxForm
{
  internal string m_message = string.Empty;
  private IContainer components;
  private Button buttonOK;
  private Label labelHeader;
  private Panel panel1;
  private Label labelContent;

  public CUiEXGExplodeGeometryMessage() => this.InitializeComponent();

  public virtual void OnInitTxForm()
  {
    base.OnInitTxForm();
    ((Control) this).Text = ExplodeGeometriesStringTable.CMD_NAME;
    this.labelHeader.Text = ExplodeGeometriesStringTable.FAILED_TO_EXPLODE_ENTITY_GEOMETRIES;
    this.labelContent.Text = this.m_message;
  }

  public static void Show(string message)
  {
    int num = (int) ((Form) new CUiEXGExplodeGeometryMessage()
    {
      m_message = message
    }).ShowDialog();
  }

  private void buttonOK_Click(object sender, EventArgs e) => ((Form) this).Close();

  protected virtual void Dispose(bool disposing)
  {
    if (disposing && this.components != null)
      this.components.Dispose();
    base.Dispose(disposing);
  }

  private void InitializeComponent()
  {
    ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof (CUiEXGExplodeGeometryMessage));
    this.buttonOK = new Button();
    this.labelHeader = new Label();
    this.panel1 = new Panel();
    this.labelContent = new Label();
    this.panel1.SuspendLayout();
    ((Control) this).SuspendLayout();
    componentResourceManager.ApplyResources((object) this.buttonOK, "buttonOK");
    this.buttonOK.Name = "buttonOK";
    this.buttonOK.UseVisualStyleBackColor = true;
    this.buttonOK.Click += new EventHandler(this.buttonOK_Click);
    componentResourceManager.ApplyResources((object) this.labelHeader, "labelHeader");
    this.labelHeader.Name = "labelHeader";
    componentResourceManager.ApplyResources((object) this.panel1, "panel1");
    this.panel1.Controls.Add((Control) this.labelContent);
    this.panel1.Name = "panel1";
    componentResourceManager.ApplyResources((object) this.labelContent, "labelContent");
    this.labelContent.Name = "labelContent";
    ((Form) this).AcceptButton = (IButtonControl) this.buttonOK;
    componentResourceManager.ApplyResources((object) this, "$this");
    ((ContainerControl) this).AutoScaleMode = AutoScaleMode.Font;
    ((Control) this).Controls.Add((Control) this.panel1);
    ((Control) this).Controls.Add((Control) this.labelHeader);
    ((Control) this).Controls.Add((Control) this.buttonOK);
    ((Form) this).MaximizeBox = false;
    ((Form) this).MinimizeBox = false;
    ((Control) this).Name = nameof (CUiEXGExplodeGeometryMessage);
    ((Form) this).ShowIcon = false;
    ((Form) this).SizeGripStyle = SizeGripStyle.Hide;
    this.panel1.ResumeLayout(false);
    this.panel1.PerformLayout();
    ((Control) this).ResumeLayout(false);
    ((Control) this).PerformLayout();
  }
}
